package com.poseidon.cgliblearn;

import net.sf.cglib.proxy.Enhancer;

public class CgLibTest {
	public static void main(String[] args) {
		Enhancer enhancer = new Enhancer();
		enhancer.setSuperclass(Dao.class);
		enhancer.setCallback(new DaoProxy());

		Dao obj = (Dao)enhancer.create();
		obj.remove("name", 12);
	}
}
